package ua.maxicash.util.criteria.handlers;

import org.hibernate.criterion.DetachedCriteria;
import org.hibernate.criterion.Junction;
import ua.maxicash.util.Filter;

import java.util.ArrayList;
import java.util.List;

public abstract class CriteriaHandler {

    protected List<String> aliases;
    public abstract void setUp(Filter filter);
    public abstract DetachedCriteria handle(DetachedCriteria criteria, Junction junction);

    public CriteriaHandler() {
    }

    public CriteriaHandler(List<String> aliases) {
        this.aliases = aliases;
    }

    public List<String> getAliases() {
        return aliases;
    }

    public void setAliases(List<String> aliases) {
        this.aliases = aliases;
    }
}
